
import Index from '@/views/index.vue'
import UserCenter from '@/components/left/UserCenter.vue';
import ArticleList from '@/components/content/article/ArticleList.vue';
import ArticleContent from '@/components/content/article/ArticleContent.vue';
import PoetryList from '@/components/content/poetry/PoetryList.vue'
import PoetryContent from '@/components/content/poetry/PoetryContent.vue'
import NovelList from '@/components/content/novel/NovelList.vue'
import NovelContent from '@/components/content/novel/NovelContent.vue'
import Footer from '@/components/footer/Footer.vue'
import DefaultRight from '@/components/right/DefaultRight.vue';
import PoetryRight from '@/components/right/PoetryRight.vue';
export const routes = [
  {
    path: '/',
    name: 'index',
    meta: { title: '怡人Y&R' },
	component:Index,
	redirect: '/article/articleList',
	children:[
		{
			path: '/article/articleList',
			name: 'articleList',
			components: {
				content: ArticleList,
				left: UserCenter,
				right: DefaultRight,
				footer:Footer
			},
			alias: '/',
			meta: {
				title: '怡人Y&R'
			}
		},
		{
			path: '/article/articleContent',
			name: 'articleContent',
			components: {
				content: ArticleContent,
				left: UserCenter,
				right: DefaultRight,
				footer:Footer
			},
			meta: {
				title: '怡人Y&R | 愿为理想而非生活 '
			}
		},
		{
			path: '/poetry/poetryList',
			name: 'poetryList',
			components: {
				content: PoetryList,
				left: UserCenter,
				right: DefaultRight,
				footer:Footer
			},
			meta: {
				title: '怡人Y&R | 温其如玉 '
			}
		},
		{
			path: '/poetry/poetryContent',
			name: 'poetryContent',
			components: {
				content: PoetryContent,
				left: UserCenter,
				right: PoetryRight,
				footer:Footer
			},
			meta: {
				title: '怡人Y&R | 言念君子 | 温其如玉 '
			}
		},
		{
			path: '/novel/novelList',
			name: 'novelList',
			components: {
				content: NovelList,
				left: UserCenter,
				right: DefaultRight,
				footer:Footer
			},
			meta: {
				title: '怡人Y&R | 笑忘书集 '
			}
		},
		{
			path: '/novel/novelContent',
			name: 'novelContent',
			components: {
				content: NovelContent,
				left: UserCenter,
				right: PoetryRight,
				footer:Footer
			},
			meta: {
				title: '怡人Y&R | 笑忘书集 | 闲人造作 '
			}
		}
	]
  }
]
export default routes